﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FireFly;

namespace XAMLStylePad.ViewModels
{
    public abstract class XamlViewModelBase<TModel>: HierarchicalViewModelBase<TModel>
    {
        public XamlViewModelBase(TModel model) : base(model)
        {
        }

        public override IRelayCommand SelectCommand
        {
            get
            {
                return new RelayCommand<XamlViewModelBase<TModel>>(context =>
                {
                    context.AppContext.SetObject(context.ViewModel.Model);

                }, "XamlViewModelBase.Select");
            }
        }
    }
}
